<?php

namespace BXTR\BookBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DefaultController extends Controller
{
    public function indexAction()
    {
        $em = $this->getDoctrine()->getManager();
        $state = $em->getRepository("BXTRBookBundle:BookState")->findOneById(0);
        return $this->render('BXTRBookBundle:Default:index.html.twig', array('state' => $state));
    }
}
